package deng.ejbtx;

import java.util.Properties;
import java.util.Set;
import java.util.logging.Logger;

public class LoggerDemo {
	protected Logger logger = Logger.getLogger(getClass().getName());
	
	public static void main(String[] args) throws Exception {
		LoggerDemo demo = new LoggerDemo();
		demo.run();
	}

	private void run() {
		Properties props = System.getProperties();
		Set<String> names = props.stringPropertyNames();
		for (String name : names) {
			logger.info(name + ": " + props.getProperty(name));
		}
	}
}
